<template>
  <div class="app">
    <HeaderNav />
    <main class="main-content">
      <router-view />
    </main>
    <footer class="app-footer">
      <div class="footer-content">
        <div class="footer-info">
          <h3>现代化系统</h3>
          <p>提供专业的解决方案，满足您的各种需求</p>
        </div>
        <div class="footer-links">
          <a href="/about">关于我们</a>
          <a href="/services">服务支持</a>
          <a href="/contact">联系我们</a>
          <a href="/privacy">隐私政策</a>
        </div>
        <div class="footer-copyright">
          <p>&copy; 2024 现代化系统. 保留所有权利.</p>
        </div>
      </div>
    </footer>
  </div>
</template>

<script setup lang="ts">
import HeaderNav from '@/components/Header_nav.vue'
</script>

<style>
/* 全局重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

/* 应用容器样式 */
.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* 主内容区域 */
.main-content {
  flex: 1;
  padding: 30px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* 页脚样式 */
.app-footer {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 40px 0;
  margin-top: 40px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.footer-info h3 {
  font-size: 24px;
  margin-bottom: 10px;
  font-weight: 700;
}

.footer-info p {
  opacity: 0.9;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 20px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.3s ease;
  font-weight: 500;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-copyright {
  opacity: 0.8;
  font-size: 14px;
}

/* 卡片样式 */
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* 按钮通用样式 */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background-color: #fff;
  color: #667eea;
  border: 2px solid #667eea;
}

.btn-secondary:hover {
  background-color: #667eea;
  color: #fff;
  transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .main-content {
    padding: 20px;
  }
  
  .footer-content {
    padding: 0 20px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 15px;
  }
}
</style>